 /*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 /**
 * Project  : EasyAvatar-Android
 * Package  : net.solosky.easyavatar.bean
 * File     : Match.java
 * Author   : solosky < solosky772@qq.com >
 * Created  : Nov 13, 2011
 * License  : Apache License 2.0 
 */
package net.solosky.easyavatar.bean;

import net.solosky.easyavatar.api.Friend;

/**
 *
 * 好友和联系人匹配对象
 *
 * @author solosky <solosky772@qq.com>
 *
 */
public class Match {
	/**好友对象*/
	private Friend friend;
	/**联系人对象*/
	private Contact contact;
	/**匹配类型*/
	private MatchType type;
	
	public Match(Friend friend, Contact contact, MatchType type) {
		this.friend = friend;
		this.contact = contact;
		this.type = type;
	}
	public Friend getFriend() {
		return friend;
	}
	public void setFriend(Friend friend) {
		this.friend = friend;
	}
	public Contact getContact() {
		return contact;
	}
	public void setContact(Contact contact) {
		this.contact = contact;
	}
	
	public MatchType getType() {
		return type;
	}
	public void setType(MatchType type) {
		this.type = type;
	}



	/**
	 * 
	 * 匹配类型
	 *
	 * @author solosky <solosky772@qq.com>
	 *
	 */
	public enum MatchType{
		/**系统自动匹配*/
		SYSTEM, 
		/**用户手工匹配*/
		USER,
	}
}
